package com.starry.push.netty.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author  WuChao
 * @date  2020/11/3 14:22
 * @version 1.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "system_personnel")
public class SystemPersonnel {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private byte[] id;

    /**
     * 客户端
     */
    @TableField(value = "client_type")
    private String clientType;

    /**
     * 认证key
     */
    @TableField(value = "access_key")
    private String accessKey;

    /**
     * 认证密码
     */
    @TableField(value = "access_secret")
    private String accessSecret;

    /**
     * 账号状态 

0-未启用
1-启用
2-已禁用
     */
    @TableField(value = "status")
    private String status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    public static final String COL_ID = "id";

    public static final String COL_CLIENT_TYPE = "client_type";

    public static final String COL_ACCESS_KEY = "access_key";

    public static final String COL_ACCESS_SECRET = "access_secret";

    public static final String COL_STATUS = "status";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}